﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.model
{
    public class HearingData : INotifyPropertyChanged
    {
        int[] leftBasic = new int[6];
        int[] rightBasic = new int[6];
        int[] leftAdvanced = new int[10];
        int[] rightAdvanced = new int[10];        
       
        public HearingData() {
            leftBasic[0]= 30;
            leftBasic[1]= 40;
            leftBasic[2]= 70;
            leftBasic[3]= 90;
            leftBasic[4]= 80;
            leftBasic[5]= 55;

            leftAdvanced[0] = 70;
            leftAdvanced[1] = 90;
            leftAdvanced[2] = 120;
            leftAdvanced[3] = 150;
            leftAdvanced[4] = 180;
            leftAdvanced[5] = 220;
            leftAdvanced[6] = 180;
            leftAdvanced[7] = 160;
            leftAdvanced[8] = 150;
            leftAdvanced[9] = 90;

            for (int i = 0; i < leftBasic.Length; i++)
                rightBasic[i] = leftBasic[i] + 20;

            for (int i = 0; i < leftAdvanced.Length; i++)
                rightAdvanced[i] = leftAdvanced[i] + 20;
        }

        public int[] LeftBasic
        {
            get { return leftBasic; }
            set { leftBasic = value; }
        }

        public int[] RightBasic
        {
            get { return rightBasic; }
            set { rightBasic = value; }
        }

        public int[] LeftAdvanced
        {
            get { return leftAdvanced; }
            set { leftAdvanced = value; }
        }

        public int[] RightAdvanced
        {
            get { return rightAdvanced; }
            set { rightAdvanced = value; }
        }

        

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
